﻿using System;

namespace Columbus
{
    /// <summary>
    /// Exception indicates that controller action can not be found
    /// </summary>
    public class ActionNotFoundException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ActionNotFoundException"/> class.
        /// </summary>
        /// <param name="actionName">Name of the action.</param>
        public ActionNotFoundException(string actionName)
            : base(String.Format("Can not find action {0} because there is no such public method in controller class or parameters passed with navigation request are not matching method signature", actionName))
        {
        }
    }
}